package com.etc.youkeshoppingssm.dao;

import com.etc.youkeshoppingssm.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

public interface IUserDao {
    @Select("select * from user where id = #{id}")
//    @Results(id = "myUser",value = {
//            @Result(property = "id",column = "id"),
//            @Result(property = "username",column = "username"),
//            @Result(property = )
//    })
    User findOfUser(@Param("id") int id);
}
